package com.braveman.im.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class KeepLiveReceiver extends BroadcastReceiver {
    private Context mContext;

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (action.equals(Intent.ACTION_SCREEN_OFF)) {
//            KeepLiveManeger.getInstance(mContext).startKeepLiveActivity();
        } else if (action.equals(Intent.ACTION_USER_PRESENT)) {
//            KeepLiveManeger.getInstance(mContext).destroyKeepLiveActivity();
        }
//        KeepLiveManeger.getInstance(mContext).startKeepLiveService();
    }
}